package com.gome.ocean.dao.datax;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Repository;

import com.gome.ocean.dao.model.datax.JobHistoryBO;


/**
 * <p> 标题: </p>
 * <p> 描述: </p>
 * @作者 liuqingxia
 * @创建时间 2016-01-21 16:09:12
 */
@Repository("jobHistoryDAO")
public interface JobHistoryDAO {

    int insertJobHistory(JobHistoryBO jobHistoryBO);

    int removeJobHistoryById(Long id);

    int updateJobHistoryById(JobHistoryBO jobHistoryBO);

    JobHistoryBO findJobHistoryById(Long id);

    List<JobHistoryBO> findJobHistoryByJobId(@Param("jobId")Long jobId,RowBounds rowBounds);

    JobHistoryBO findCurrentJob(Long id);

	List<JobHistoryBO> findAllJobListByIpAndState(@Param("ip")String ip,@Param("state") int state);
	
}